import request from '@/utils/request'

export function getImsMemberStatRecord(query) {
  return request({
    url: '/imsMemberStatRecord/page',
    method: 'get',
    params: query
  })
}
//获取用户聊天记录
export function getImsMemberChatRecord(query) {
  return request({
    url: '/imsSendMsg/page',
    method: 'get',
    params: query
  })
}


//获取举报记录
export function getImsReportRecord(query) {
  return request({
    url: '/imsTipOffRecord/page',
    method: 'get',
    params: query
  })
}


// 获取群组列表

export function getImsGroupList(query) {
  return request({
    url: '/imsGroup/queryAppGroupList',
    method: 'get',
    params: query
  })
}
//查询群成员列表
export function getImsGroupMemberList(query) {
  return request({
    url: '/imsGroup/queryMemberList',
    method: 'get',
    params: query
  })
}

//设置群禁言
export function setGroupSilence(query) {
  return request({
    url: '/imsGroup/mute',
    method: 'post',
    data: query
  })
}

//解散群组

export function delGroup(groupId) {
  return request({
    url: `/imsGroup/dismiss/${groupId}`,
    method: 'post',
  })
}


// 获取用户聊天记录详情
export function getImsMemberChatRecordDetail(msgId) {
  return request({
    url: `/imsSendMsg/${msgId}`,
    method: 'get',
  })
}

//获取聊天记录上下
export function getImsMemberChatRecordPage(query) {
  return request({
    url: '/imsSendMsg/upOrDown',
    method: 'get',
    params: query
  })
}